package com.qin.mall.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qin.mall.dto.*;
import com.qin.mall.domain.OmsOrder;
import com.baomidou.mybatisplus.extension.service.IService;


import java.util.List;

/**
* @author 覃剑
* @description 针对表【oms_order(订单表)】的数据库操作Service
* @createDate 2022-11-09 18:35:47
*/
public interface OmsOrderService extends IService<OmsOrder> {
    /**
     * 分页查询订单查询
     */
    Page<OmsOrder> list(Integer pageNum, Integer pageSize);

    /**
     * 分页条件查询订单查询
     */
    Page<OmsOrder> list(OmsOrderQueryParam queryParam, Integer pageNum, Integer pageSize);
    
    /**
     * 批量发货
     */
    int delivery(List<OmsOrderDeliveryParam> deliveryParamList);

    /**
     * 批量关闭订单
     */
    int close(List<Long> ids, String note);

    /**
     * 批量删除订单
     */
    int delete(List<Long> ids);

    /**
     * 获取指定订单详情
     */
    OmsOrderDetail detail(Long id);

    /**
     * 修改订单收货人信息
     */
    int updateReceiverInfo(OmsReceiverInfoParam receiverInfoParam);

    /**
     * 修改订单费用信息
     */
    int updateMoneyInfo(OmsMoneyInfoParam moneyInfoParam);

    /**
     * 修改订单备注
     */
    int updateNote(Long id, String note, Integer status);
    
}
